package cn.funnymap.lgis.tools.vector.parser;

import org.opengis.referencing.crs.CoordinateReferenceSystem;

import java.nio.file.Path;

/**
 * Shapefile-GeoJSON解析参数
 *
 * @author jiaoxn
 */
public class ShpParseParameter {
    private final Path filePath;
    private final CoordinateReferenceSystem targetCrs;
    private boolean deleteFileWhenDone = true;

    public ShpParseParameter(Path filePath, CoordinateReferenceSystem targetCrs) {
        this.filePath = filePath;
        this.targetCrs = targetCrs;
    }

    public ShpParseParameter(Path filePath, CoordinateReferenceSystem targetCrs, boolean deleteFileWhenDone) {
        this.filePath = filePath;
        this.targetCrs = targetCrs;
        this.deleteFileWhenDone = deleteFileWhenDone;
    }

    public Path getFilePath() {
        return filePath;
    }

    public CoordinateReferenceSystem getTargetCrs() {
        return targetCrs;
    }

    public boolean getDeleteFileWhenDone() {
        return deleteFileWhenDone;
    }
}
